/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.master;

import com.kmcsoft.emaster.entity.TrackableEntity;
import java.util.HashSet;
import java.util.Set;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "SHOP_PricingPerson")
@FetchGroup(name = "detach_PricingPerson_ProductJewelry", members = {
    @Persistent(name = "jewelryList")})
public class PricingPerson extends TrackableEntity {

    @Persistent
    private String name;
    @Persistent
    private String description;
    @Persistent(mappedBy = "person")
    private Set<ProductJewelry> jewelryList;

    public PricingPerson() {
        jewelryList = new HashSet<ProductJewelry>();
    }

    public Set<ProductJewelry> getJewelryList() {
        return jewelryList;
    }

    public void setJewelryList(Set<ProductJewelry> jewelryList) {
        this.jewelryList = jewelryList;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
